home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 2 / AACD 2.iso / AACD / Programming / MUI / MCC_VLab / Developer / c / examples / vlabwinclass.h < prev   
Encoding:
C/C++ Source or Header  |  1999-05-18  |  1.7 KB  |  39 lines

  1. /* Defines and Structures for our custom class, VLabWinClass.*/
  2.  
  3. /* This sets up an abritray value to use as the starting point for our tags.*/
  4. #define MUISERIALNR_VLABWIN 1
  5. #define TAGBASE_VLABWIN            ( TAG_USER | ( MUISERIALNR_VLABWIN << 16 ) )
  6.  
  7. /* Instance data */
  8. /* This contains all the variable required by our custom class, VLabWinClass.*/
  9. struct VLabWinData
  10. {
  11.     Object *vlabObj;            // The "main" VLab object that is passed into us with a tag. (see below)
  12.  
  13.     Object *ownMonitor;        // The monitor object that we get() from VLab.mcc.
  14.  
  15.     Object *buttonGroup;    // The group containing all the buttons in the window.
  16.  
  17.     Object *mainGroup;        // The group containing everything in the window.
  18.  
  19.     Object *monitorGroup;    // The group containing the "own monitor".
  20.  
  21.     Object *monitorText;    // The text object below the "own monitor".
  22.  
  23.     Object *vlabImage;        // The image object pointer returned from a "grab".
  24.  
  25.     Object *vlabImageWin;    // The window in which we are displaying the grabbed image.
  26. };
  27.  
  28. /* Methods */
  29. /* These methods are called on our custom class, VLabWinClass.*/
  30. #define MUIM_VLabWin_OwnMonitorOn     ( TAGBASE_VLABWIN + 1 )    // Turns on a monitor in our own window.
  31. #define MUIM_VLabWin_OwnMonitorOff    ( TAGBASE_VLABWIN + 2 )    // Turns off the monitor in our own window.
  32. #define MUIM_VLabWin_OwnMonitorRun    ( TAGBASE_VLABWIN + 3 )    // Runs the monitor in our window.
  33. #define MUIM_VLabWin_OwnMonitorStop    ( TAGBASE_VLABWIN + 4 )    // Stops the monitor in our window.
  34. #define    MUIM_VLabWin_Grab                        ( TAGBASE_VLABWIN + 5 )    // Grabs an image from the VLab card.
  35.  
  36. /* Tags */
  37. /* These tags are passed from object to object when required.*/
  38. #define    VLAB_Object    ( TAGBASE_VLABWIN + 20 )    // Used to pass VLab.mcc to our custom class, VLabWinClass.
  39.